package com.assignwork.vo.pc;

import com.assignwork.dto.StartedCabinDTO;
import com.assignwork.entity.pc.AttachmentDetails;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName PcShipRealWritingVo
 * @Description
 * @Author sl
 * @Date 2023/12/27 11:57
 */
@Data
public class PcShipRealWritingVo implements Serializable {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "主键")
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "船舶ID",notes = "船舶ID")
    private Long shipId ;

    @ApiModelProperty(name = "舱号",notes = "舱号")
    private String cabin ;

    @ApiModelProperty(name = "进出口",notes = "进出口")
    private String impExp ;

    @ApiModelProperty(name = "日志",notes = "日志")
    private String log ;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime createTime;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(name = "更新人",notes = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新人名称")
    private String updateUserName;

    @ApiModelProperty(name = "附件list",notes = "附件list")
    private List<AttachmentDetails> attachmentDetails;

    @ApiModelProperty(name = "是否同步交接班",notes = "是否同步交接班")
    private Integer isShift ;
    @ApiModelProperty(name = "船名",notes = "船名")
    private String shipNameZh ;
    @ApiModelProperty(name = "航次",notes = "航次")
    private String voyageNo ;
}
